<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2022/9/29
  Time: 10:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>个人信息</title>
    <link href="${pageContext.request.contextPath}/css/reset.css" type="text/css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
</head>
<body>
    <div class="all">
        <form class="info-form" method="post" action="${pageContext.request.contextPath}/user?method=updateUserInfo">
            <input type="hidden" name="id" id="id" value="${id}"/>
            <div class="item">
                <label for="username" class="sr-only">用户名</label>
                <input type="text" id="username" class="form-control" placeholder="username" required autofocus name="username" value="${username}"/>
            </div>
            <div class="item">
                <label for="password" class="sr-only">密码</label>
                <input type="password" id="password" name="password" class="form-control" placeholder="Password" required value="${password}" />
            </div>
            <div class="item">
                <label for="address" class="sr-only">地址</label>
                <input type="text" id="address" name="address" class="form-control" placeholder="address" value="${address}" />
            </div>
            <button class="btn btn-lg btn-primary btn-block" type="submit">修改</button>
            <div class="tip-msg">
                ${errMsg}
            </div>
        </form>
    </div> <!-- /container -->
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function (){

        })
    </script>
</body>
</html>
